-- GENERATED SPELL FOR [Stitched Golem] --


function spell0_8545(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(16577,pUnit)
pUnit:RegisterEvent('Sorts_8545', 0, 1)
end

function Sorts_8545(pUnit, Event)
local choix_sorts_8545 = math.random(0, 0)
if choix_sorts_8545 == 0 then
pUnit:RegisterEvent('spell0_8545', 1, 1)
end
end

function mob8545_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8545', math.random(1500, 3000), 1)
end

function mob8545_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8545_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8545_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8545, 1, 'mob8545_Action')
RegisterUnitEvent(8545, 2, 'mob8545_Leave')
RegisterUnitEvent(8545, 3, 'mob8545_Kill')
RegisterUnitEvent(8545, 4, 'mob8545_Die')
